<extend name="./Application/Common/View/block/base.php" />
<block name="header">
    <include file="./Application/Admin/View/block/easyui_header.php" />

    <link href="__PUBLIC__/css/Gallery/index.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/css/table_css.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/Public/uploadfy/uploadify.css" />

</block>
<block name="bdoy">
    <body>
        <form action="" method="post" onsubmit="return $(this).form('validate');">
            <table cellspacing="0" width="100%" class="">
                <tr>
                    <td class="label"><strong>{:LANG('status')}: </strong></td>
                    <td class="form-line radio-line">
                        <label>{:LANG('pass')}</label><input class="radio" type="radio" name="status" value="1" checked="checked">
                        &nbsp;&nbsp;&nbsp;
                        <label>{:LANG('wate')}</label><input class="radio" type="radio" name="status" value="0">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('sort')}: </strong></td>
                    <td class="form-line">
                        <input class="easyui-textbox easyui-validatebox input-text" name="sort" size="10" value="0" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'请输入{:LANG('sort')}',required:true,validType:'length[1,50]'">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('url')}: </strong></td>
                    <td class="form-line">
                        <input class="easyui-textbox easyui-validatebox input-text url" name="url" value="#" size="80" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'请输入{:LANG('url')}',required:true,validType:'length[1,255]'">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('main_img')}: </strong></td>
                    <td class="form-line">
                        <img class="main_img" src="__PUBLIC__/img/no_pic.jpg" height="200"/>
                        <input class="easyui-validatebox" data-options="required:true,validType:'length[1,255]'"
                               type="hidden" name="mainpath" id="mainpath">
                        <input id="file_upload_main" name="file_upload" type="file" multiple="true" value="" />
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('extend_img')}: </strong></td>
                    <td class="form-line">
                        <img class="extend_img" src="__PUBLIC__/img/no_pic.jpg" height="200"/>
                        <input type="hidden" name="extendpath" id="extendpath">
                        <input id="file_upload_extend" name="file_upload" type="file" multiple="true" value="" />
                    </td>
                </tr>
                <tr>
                    <td class="label"></td>
                    <td class="form-line">
                        <input type="submit" class="submit-button bule-button" value="{:LANG('save')}">
                        <input type="button" onclick="close_dialog()" class="submit-button" value="{:LANG('cancel')}">
                    </td>
                </tr>
            </table>
        </form>
    </body>
</block>
<block name="footExtendJs">

    <!--上传图片-->
    <script type="text/javascript" src="/Public/uploadfy/jquery.uploadify.min.js"></script>
    <script type="text/javascript">
        $(function() {
            $('#file_upload_main').uploadify({
                'swf'      : '/Public/uploadfy/uploadify.swf',
                'uploader' : '__URL__/uploadify',
                'buttonText' : '上传图片',
                'onUploadSuccess' : function(file, data, response) {
                    var imgname = data.trim();
                    $('.main_img').attr('src', imgname);
                    $('#mainpath').val(imgname);
                }
            });
            $('#file_upload_extend').uploadify({
                'swf'      : '/Public/uploadfy/uploadify.swf',
                'uploader' : '__URL__/uploadify',
                'buttonText' : '上传图片',
                'onUploadSuccess' : function(file, data, response) {
                    var imgname = data.trim();
                    $('.extend_img').attr('src', imgname);
                    $('#extendpath').val(imgname);
                }
            });
        });
    </script>


</block>
